﻿#region Using directives

using System;
using System.ComponentModel;

#endregion

namespace InfoExpress.ESM.Domains
{	
	///<summary>
	/// An object representation of the 'ClassSchedule' table. [No description found the database]	
	///</summary>
	/// <remarks>
	/// This file is generated once and will never be overwritten.
	/// </remarks>	
	[Serializable]
	[CLSCompliant(true)]
	public partial class ClassSchedule : ClassScheduleBase
	{		
		#region Constructors

		///<summary>
		/// Creates a new <see cref="ClassSchedule"/> instance.
		///</summary>
		public ClassSchedule():base(){}	
		
		#endregion

    /// <summary>
    /// Additional property.
    /// </summary>
    [DescriptionAttribute(@""), System.ComponentModel.Bindable(System.ComponentModel.BindableSupport.Yes)]
    [DataObjectField(false, false, false)]
    public virtual string Day
    {
      get
      {
        if (Date.HasValue)
        {
          switch (Date.Value.DayOfWeek)
          {
            case DayOfWeek.Monday:
              return "Thứ Hai";
            case DayOfWeek.Tuesday:
              return "Thứ Ba";
            case DayOfWeek.Wednesday:
              return "Thứ Tư";
            case DayOfWeek.Thursday:
              return "Thứ Năm";
            case DayOfWeek.Friday:
              return "Thứ Sáu";
            case DayOfWeek.Saturday:
              return "Thứ Bảy";
            case DayOfWeek.Sunday:
              return "Chủ Nhật";
            default:
              return string.Empty;
          }
        }
        else
        {
          return string.Empty;
        }
      }
      set
      {
      }
    }
	}
}
